package com.bus;

import com.google.common.eventbus.Subscribe;

public class DataObserver2 {

    /**
     * 只有通过@subscribe注解的方法才能被注册到EventBus下
     * @param msg
     */
    @Subscribe
    public void func(Integer msg){
        System.out.println("dataObserver2:"+msg);
    }
}
